<?php
@session_start();

$pos = isset($_GET['pos']) ? intval($_GET['pos']) : -1;

if ($pos < 0 || $pos > 4) {
	exit;
}

// No Cache
header ("Expires: Sat, 10 Dec 1983 07:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");  // HTTP/1.1
header ("Pragma: no-cache");                          // HTTP/1.0

// Send Image
header('Content-Disposition: inline; filename=smartor.gif');
header('Content-type: image/gif');
readfile('anti/'.substr($_SESSION['captcha'], $pos, 1).'.gif');